var env = 'prod';
// var env = 'test';
var host = "";
var gtphost ="";
var yimahost ="";
var bpshost ="";
var APIURL="";
var APIURLP="";
var sys_invitecode=77889900;
var sys_imtoken_id = 'aabbccddMID1';
var MD5KEY = '3e&C6%6#1@9&!dA1Evb';
if (env == 'prod'){
   bpshost = "http://www.ytzxwang.com/";
   qiniuhost = "http://7n.juemu.net/",
   shopapiroot = "http://api.ytzxwang.com/"
  APIURL ='http://prod.tecdd.cn:9093';
  APIURLP = 'http://qhr.tecdd.cn:8082';
}else{
   bpshost = "http://www.ytzxwang.com/";
   qiniuhost = "http://7n.lzshu.cn/",
   shopapiroot = "http://api.ytzxwang.com/"
  APIURL ='http://114.55.67.167:9093';
  APIURLP = 'http://114.55.67.167:8082';
}

// var host = "http://192.168.3.39/";
var app = host + 'app/';
var wap = host + 'wap/';
// var APIURL ='http://114.55.67.167:9093';
// var APIURLP = 'http://114.55.67.167:8082';
// var APIURLP = 'http://192.168.1.114:8082';

var URL = {
    /*----crh----*/
    getHomeData: app +'home/index',
    getUserinfo: app + 'user/getUserInfo',
    getAccounts: app +'account/getAccounts',
    delAccount: app +'account/delAccount',
    addAccount: app +'account/addAccount',
    updPassword: app +'account/updPassword',
    updLoginPassword: app +'user/updPassword',
    changePwd: app +'user/changePwd',
    sendCode: app +'user/sendCode',
    updUserInfo: app +'user/updUserInfo',
    login:app + 'user/login',
    codelogin:app + 'user/codelogin',
    coderegister:app + 'user/codeRegister',
    upMemberEdit:app + 'level/upMemberEdit',
    oauthLogin:app + 'user/oauthLogin',
    oauthRegister:app + 'user/oauthRegister',
    getBindInfos:app + 'user/getBindInfos',
    oauthBind:app + 'user/oauthBind',
    getInviteCode:app + 'user/getInviteCode',
    verifyCode:app + 'user/verify',
    about_us:wap + 'home/about_us',
    OauthCancelBind:app + 'user/OauthCancelBind',
    preRegister:app + "user/preRegister",
    createGroup: app +'im/createClan',
    getClanInfo: app +'im/getClanInfo',
    getClanMembers:app +'im/getClanMembers',
    getClanSingleInfo:app +'im/getClanSingleInfo',
    getClansAndFriends:app +'im/getClansAndFriends',
    addApply:app +'im/addApply',
    getApplyList:app + "im/getApplyList",
    addFriend:app + "im/addFriend",
    refuseApply:app + "im/refuseApply",
    getFriendInfo:app + "im/getFriendInfo",
    updateClan:app + "im/updateClan",
    searchMember:app + "im/searchMember",
    getMemberInfo:app + "im/getMemberInfo",
    renownDetail:app + "user/renownDetail",
    quitClan:app +'im/quitClan',
    searchClan:app +'im/searchClan',
    myExtend:app +'member/myExtend',
    getMemberLevelsInfo:app +'im/getMemberLevelsInfo',
    updateClan:app +'im/updateClan',
    addClanMember:app +'im/addClanMember',
    forgetPwd:app +'user/forgetPwd',
    buyProp:app +'game/buyProp',
    sacrifice:app +'game/sacrifice',
    getSignInfo:app +'game/getSignInfo',
    sign:app +'game/sign',
    gainGoldDetail:app +'member/getGoldGainDetail',
    useGoldDetail:app +'member/getGoldConsumeDetail',
    gainRenownDetail:app +'member/getRenownGainDetail',
    useRenownDetail:app +'member/getRenownConsumeDetail',
    growUp:app +'game/growUp',
    getThreePlanInfo:app +'game/getThreePlanInfo',
    joinPlan:app +'game/joinPlan',
    useVoucherDetail:app +'member/getVoucherConsumeDetail',
    gainVoucherDetail:app +'member/getVoucherGainDetail',
    getVoucherScale:app +'game/getVoucherScale',
    exchangeVoucher:app +'game/exchangeVoucher',
    getGoldLevelRecord:app +'game/getGoldLevelRecord',
    getPropList:app +'game/getPropList',
    delFriend:app +'im/delFriend',
    getVoucherOrderList:app +'member/getVoucherOrderList',
    sendFeedback:app +'Feedback/send',
    setClanManager:app +'im/setClanManager',
    pay:app +'order/pay',
    getGoldLevel2Count:app +'member/getGoldLevel2Count',
    removeClan:app +'im/removeClan',
    getThreePlanBonus:app +'game/getThreePlanBonus',
    firstGiftByOnce:app +'member/firstGiftByOnce',
    getLevelRecord:app +'game/getLevelRecord',
    getProductMilkConsumeDetail:app +'member/getProductMilkConsumeDetail',
    getProductMilkGainDetail:app +'member/getProductMilkGainDetail',
    updateMarkName:app +'im/updateMarkName',
    userApplication:app +'customer/userApplication',
    userFriends:app +'customer/userFriends',
    orderDetail:app +'customer/orderDetail',
    buycow:app +'order/buycow',
		getRenownCount:app + 'member/getRenownCount',
		delApply:app + 'im/delApply',
		newsList:app + 'news/newsList',
		getAnswer:app + 'answer/getAnswer',
		requireKeyword: app + 'answer/requireKeyword',
		sensitiveWordList: app + 'answer/sensitiveWordList',
		submitSensitiveWord: app + 'answer/submitSensitiveWord',
		setNodisturb: app + 'im/setNodisturb',
    getInviteFriends:app +'im/getInviteFriends',
    inviteToClan:app + 'im/inviteToClan',
    publishDynamic:app + 'dynamic/publishDynamic',

    /*----wwj----*/
    getCategoryList: app +"searchcategory/getCategorysLevel1",
    baseData : app + "init/getBaseData",
    getFriendsByKeyWords: app + "im/getFriendsByKeyWords",
    updateMemberNickName: app + "im/updateMemberNickName",

};
